package CPU工作原理作业;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 25228
 * Date: 2024-12-21
 * Time: 19:58
 */
public class Main2 {
    public static void main(String[] args) throws InterruptedException {

        Thread threadA=new Thread(() ->{
            System.out.println("AA");
        });

        Thread threadB=new Thread(() ->{
            System.out.println("BB");
        });

        Thread threadC=new Thread(() ->{
            System.out.println("CC");
        });
        threadC.start();
        threadC.join();

        threadB.start();
        threadB.join();

        threadA.start();
        threadA.join();
    }
}
